<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Life Runner:  File sorgente coltura.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Batteri.jpg"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Life Runner
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Il Gioco della Vita</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generato da Doxygen 1.8.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&#160;Principale</span></a></li>
      <li><a href="annotated.html"><span>Classi</span></a></li>
      <li class="current"><a href="files.html"><span>File</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Elenco&#160;dei&#160;file</span></a></li>
      <li><a href="globals.html"><span>Elementi&#160;dei&#160;file</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Tipi enumerati (enum)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Valori del tipo enumerato</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pagine</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">coltura.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="coltura_8h.html">Vai alla documentazione di questo file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef COLTURA_H</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define COLTURA_H</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &lt;QtGui&gt;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="pilamatrici_8h.html">pilamatrici.h</a>&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="main_8h.html">main.h</a>&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">class </span><a class="code" href="classPilaMatrici.html" title="The PilaMatrici class La classe PilaMatrici si occupa della parte algoritmica e computazionale.">PilaMatrici</a>;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="code" href="classColtura.html">   54</a></span>&#160;<span class="keyword">class </span><a class="code" href="classColtura.html" title="The Coltura class.">Coltura</a> : <span class="keyword">public</span> QWidget</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;{</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    Q_OBJECT</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <a class="code" href="classColtura.html#ad0af632b900b656a7195fa0ebc8fa5f6" title="Costruttore della classe Coltura.">Coltura</a>(<span class="keywordtype">int</span> <a class="code" href="classColtura.html#a5865d62e15f27013417d949b9826ccb6">x</a>,<span class="keywordtype">int</span> <a class="code" href="classColtura.html#a882f38209b7cd87d4f9d59558ff25216">y</a>, <span class="keywordtype">int</span> <a class="code" href="classColtura.html#a3fcc964ffd903e461c48e5e60997c283">pattern</a>, QWidget * parent=0);</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <a class="code" href="classColtura.html#abcb6d8cfa5841c32f5aaf23ee850d386">~Coltura</a>();</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;     <span class="keywordtype">int</span> <a class="code" href="classColtura.html#a3e786db46b562bb0a89937536d66ce9b" title="Ritorna la velocità massima di play.">getMaxTime</a>();</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;     <span class="keywordtype">int</span> <a class="code" href="classColtura.html#a1ad014cffea1ea4a39823689712afd34" title="Ritorna la velocità minima di play.">getMinTime</a>();</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="code" href="classColtura.html#a7e021c0c0f5b171e2d190f15ea8fb531">   88</a></span>&#160;    QSlider * <a class="code" href="classColtura.html#a7e021c0c0f5b171e2d190f15ea8fb531" title="Slider che gestisce la possibilità di tornare indietro nel tempo.">timeSlider</a>;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classColtura.html#a172fa185b73568240c677322f2ee7436" title="Funzionalita&#39; di salvataggio su file.">save</a>(QString s);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classColtura.html#a97a8ef9adf0e76cb8dcf1b2bda8a74c1" title="Funzionalita&#39; di caricamento da file.">load</a>(QString s);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="keyword">public</span> slots:</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classColtura.html#abbda47dd1d21c7f16673129bea421845" title="Slot che determina il passaggio in un quanto di tempo.">aggiorna</a>();</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classColtura.html#af38f66b2e7eb6372200d74bc59921a38" title="Slot che gestisce lo scorrere del tempo.">play</a>(<span class="keywordtype">int</span>);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classColtura.html#ab0ba92801cff1d49ad664a68955e2217" title="Slot che gestisce il salto nel tempo.">timeTrip</a>(<span class="keywordtype">int</span>);</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classColtura.html#ab83eeda5bb7871f66782935bbefacb5a" title="Imposta i dati necessari per disegnare la coltura.">paintEvent</a>(QPaintEvent * event);</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="code" href="classColtura.html#a882f38209b7cd87d4f9d59558ff25216">  152</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classColtura.html#a5865d62e15f27013417d949b9826ccb6">x</a>,<a class="code" href="classColtura.html#a882f38209b7cd87d4f9d59558ff25216">y</a>;</div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="code" href="classColtura.html#a3fcc964ffd903e461c48e5e60997c283">  153</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classColtura.html#a3fcc964ffd903e461c48e5e60997c283">pattern</a>;</div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="code" href="classColtura.html#a207bd732a87e93b28b173b6473ef353b">  154</a></span>&#160;    <span class="keywordtype">int</span> * <a class="code" href="classColtura.html#a207bd732a87e93b28b173b6473ef353b">matrice</a>;</div>
<div class="line"><a name="l00155"></a><span class="lineno"><a class="code" href="classColtura.html#ae086eaffda127c7bb3225e7fcc6343d4">  155</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classColtura.html#ae086eaffda127c7bb3225e7fcc6343d4">magnifier</a>;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classColtura.html#a99c311a4e98131f6f6669495c27dde06">setMagnifier</a>();</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classColtura.html#a976d085e83a55beefb51614745c183f9" title="Funzione che disegna la coltura in base alla matrice generata da pilaMatrici-&gt;next.">paintColtura</a>(QPainter *, QPaintEvent *);</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classColtura.html#a976d085e83a55beefb51614745c183f9" title="Funzione che disegna la coltura in base alla matrice generata da pilaMatrici-&gt;next.">paintColtura</a>(QPainter *, QPaintEvent *, <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="comment">     *  Funzione di appoggio a paintColtura.</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="comment">     * Gestisce i dettagli riguardanti la modalità di disegno delle cellule.</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="comment">     * (!!pre-alpha!!)</span></div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classColtura.html#a0e4920a5f3bf9c1d7edb22b6747fcfda">draw</a>(QPainter *);</div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="code" href="classColtura.html#a5c5c190b5ed952c86bbc5da18a5571e4">  175</a></span>&#160;    <a class="code" href="classPilaMatrici.html" title="The PilaMatrici class La classe PilaMatrici si occupa della parte algoritmica e computazionale.">PilaMatrici</a> *<a class="code" href="classColtura.html#a5c5c190b5ed952c86bbc5da18a5571e4">pila</a>;</div>
<div class="line"><a name="l00176"></a><span class="lineno"><a class="code" href="classColtura.html#ae9c56d9705da9e82f6dd9bbca6ad36ff">  176</a></span>&#160;    QBrush <a class="code" href="classColtura.html#ae9c56d9705da9e82f6dd9bbca6ad36ff">colore</a>;</div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="code" href="classColtura.html#a722c6b3f346278c72a284a6ff3096161">  177</a></span>&#160;    QTimer *<a class="code" href="classColtura.html#a722c6b3f346278c72a284a6ff3096161">timer</a>;</div>
<div class="line"><a name="l00178"></a><span class="lineno"><a class="code" href="classColtura.html#a03ef74376bc23f48b2ee1d68e475793c">  178</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classColtura.html#a03ef74376bc23f48b2ee1d68e475793c">minTime</a>;</div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="code" href="classColtura.html#a3cabb500f349c2478a0bbb30466d56cc">  179</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classColtura.html#a3cabb500f349c2478a0bbb30466d56cc">maxTime</a>;</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;};</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="preprocessor">#endif // COLTURA_H</span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generato Ven 16 Nov 2012 15:59:35 per Life Runner da &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.2
</small></address>
</body>
</html>
